package com.pf.common.helper;

import com.pf.utils.MailUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class AlarmMailHelper {

    @Autowired
    private MailUtils mailUtils;

    public void sendAlarmMail(List<String> toUsers, List<String> ccUsers, String subject, Map<String, Object> data) {
        mailUtils.sendTemplateThymeleaf(toUsers, ccUsers, subject, data, "alarmMailTemplate");
    }
}
